# player_info={}
# li=[]
# print("输入quit表示录入完毕")
# while True:
#     name=input("请输入选手姓名：\n")
#     if name =="quit":
#         break
#     score=float(input("请输入票数：\n"))
#     player_info[name]=score
# items=player_info.items()
# for j in items:
#     li.append([j[1],j[0]])
# li.sort()
# count=len(li)-1
# for i in range(1,len(li)+1):
#     print(f"第{i}名，{li[count][1]},成绩为{li[count][0]}分")
#
import math


# 求任意连续个整数的和
# def addition(*input_num):
#     sum=0
#     for num in input_num:
#         sum=sum+num
#     return sum
# result=addition(10+11+12+13+14+15+16+17+18+19+20+21+22+23+24+25)
# print(result)
# def isPrime(num):
#     if num < 3:
#         return num > 1  # 正确处理0/1和2的情况
#     for i in range(2, int(num**0.5) + 1):  # 优化：只需检查到平方根
#         if num % i == 0:
#             return False  # 找到因数，立即返回False
#     return True  # 循环结束未找到因数，返回True
#
# # 打印1-100的所有素数
# for x in range(1, 101):
#     if isPrime(x):
#         print(x)
# 计算小于等于n的所有整数中能够同时被5和7整除的最大整数，n=100

#
# num=int(input())
# sum=1
# for i in range(1,num+1):
#     sum*=i
# print(sum)


# a=-1
# b=150
# c=5

# a=2
# b=200
# c=5
# if (a > 0)and(b < 100)or(c == 5):
#     if (a>0)and(b<100):
#         print(a,b)
#     # elif a>0:
#     #     print("测试")
#     else:
#         print(c)

# class Circle:
#     def __init__(self, radius):
#         self.radius = radius
#         self.color = "red"
#
#     def calculate_circumference(self):
#         return 2 * math.pi * self.radius
#     def calculate_area(self):
#         return math.pi * self.radius ** 2
#
# circle1=Circle(4)
# print("%.2f" %circle1.calculate_circumference())
# print("%.2f" %circle1.calculate_area())


class Student:
    score=dict()

    def __init__(self, name, age, score):
        self._name = name
        self._age = age
        self._score = score

    def getName(self):
        print(str(self._name))
    def getAge(self):
        print(int(self._age))
    def getMaxScore(self):
        max_score=max(self._score.values())
        print(max_score)
stu1=Student("小明",22,{"语文":87,"数学":76,"英语":98})
stu1.getName()
stu1.getAge()
stu1.getMaxScore()